<a class="btn primary" href="<?php echo url_for("new_pm"); ?>">Nouveau message</a>
<table>
<tr>
    <td></td>
    <td>Titre</td>
    <td>Envoyeur</td>
    <td>Destinataire(s)</td>
</tr>
<?php if(count($pms) == 0): ?>
 <tr><td colspan="3">Vous n'avez pas de messages !</td></tr>
<?php endif; ?>
<?php foreach($pms as $pm): ?>
<tr>
<td><?php echo !$pm["rc"]->isNew() ? 'Lu' : 'Non-lu'; ?></td>
<td><?php echo link_to($pm["pm"]->getTitle(), "show_pm", $pm["pm"]);  ?></td>
<td><?php echo link_to($pm["pm"]->getKTDFromPlayer()->getPseudo(), "show_player", $pm["pm"]->getKTDFromPlayer())?></td>
<td>
    <?php echo $pm["pm"]->getPseudoReceivers() ?>
</td>
<?php endforeach; ?>
</tr>
</table>